package com.xomily.devops.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xomily.common.core.controller.BaseController;
import com.xomily.devops.domain.DevHost;
import com.xomily.devops.service.IDevHostService;
import com.xomily.common.core.page.TableDataInfo;


/**
 * 温控Controller
 * 
 * @author xomily
 * @date 2021-12-30
 */
@RestController
@RequestMapping("/devops/temperature")
public class DevTemperatureController extends BaseController
{
    @Autowired
    private IDevHostService devHostService;

    /**
     * 查询温控信息列表
     */
    @PreAuthorize("@ss.hasPermi('devops:temperature:list')")
    @GetMapping("/list")
    public TableDataInfo list(DevHost devHost)
    {
        startPage();
        List<DevHost> list = devHostService.selectDevHostList(devHost);
        return getDataTable(list);
    }

}
